//
//  BKOrderWxManager.h
//  bestkeep
//
//  Created by 马乾征 on 16/12/6.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <WXApi.h>

@interface BKODWXObject : NSObject
@property (nonatomic, strong) NSString *appId;

@property (nonatomic, retain) NSString *partnerId;

@property (nonatomic, retain) NSString *prepayId;

@property (nonatomic, retain) NSString *nonceStr;

@property (nonatomic, assign) UInt32 timeStamp;

@property (nonatomic, retain) NSString *package;

@property (nonatomic, retain) NSString *sign;
@end




@protocol BKODWXManagerDelegate <NSObject>
@required
- (void)ODWXManagerDidRecvPayResponse:(PayResp *)response;
@end

/**
    微信支付
 */
@interface BKODWXManager : NSObject<WXApiDelegate>

@property(nonatomic, weak)id <BKODWXManagerDelegate> delegate;

-(instancetype)init NS_UNAVAILABLE;
+(instancetype)new NS_UNAVAILABLE;

+(instancetype)manager;

//请求微信支付
- (void)payRequestObject:(BKODWXObject *)obj;

//appDelegate 支付结果接收
- (void)handleOpenUrl:(NSURL *)url;

//是否安装微信
- (BOOL)isWXAppInstalled;
@end
